package sample.positive.service;

/**
 * 通知服务
 */
public class NotificationService {

    private MessageService messageService;

    public NotificationService(MessageService messageService) {
        this.messageService = messageService;
    }

    /**
     * 发送通知
     * @param message 消息
     * @param receiver 接收者
     */
    public void sendNotification(String message, String receiver) {
        messageService.sendMessage(message, receiver);
    }
}
